FROM openjdk:8-jre

ENV MOD_HOME /app

COPY target/mod-auth-0.0.1-SNAPSHOT-fat.jar $MOD_HOME/module.jar
COPY application-conf.json $MOD_HOME/application-conf.json
COPY docker/docker-entrypoint.sh $MOD_HOME/docker-entrypoint.sh

RUN chmod +x ${MOD_HOME}/docker-entrypoint.sh

# service port
EXPOSE 8081

WORKDIR $MOD_HOME


ENTRYPOINT ["./docker-entrypoint.sh"]